import request from '@/utils/request'

// 查询用户奖励记录列表
export function listReward(query) {
  return request({
    url: '/customer/reward/list',
    method: 'get',
    params: query
  })
}

// 查询用户奖励记录详细
export function getReward(id) {
  return request({
    url: '/customer/reward/' + id,
    method: 'get'
  })
}

// 新增用户奖励记录
export function addReward(data) {
  return request({
    url: '/customer/reward',
    method: 'post',
    data: data
  })
}

// 修改用户奖励记录
export function updateReward(data) {
  return request({
    url: '/customer/reward',
    method: 'put',
    data: data
  })
}

// 删除用户奖励记录
export function delReward(id) {
  return request({
    url: '/customer/reward/' + id,
    method: 'delete'
  })
}

// 导出用户奖励记录
export function exportReward(query) {
  return request({
    url: '/customer/reward/export',
    method: 'get',
    params: query
  })
}

// 查询用户奖励记录列表
export function getRewardByCustomerNo(query) {
  return request({
    url: '/customer/reward/getListByCustomerNo',
    method: 'get',
    params: query
  })
}

// 查询用户奖励记录列表
export function listRewardVo(query) {
  return request({
    url: '/customer/reward/listVo',
    method: 'get',
    params: query
  })
}

// 查询用户奖励记录详细
export function getRewardVoByLogNo(logNo) {
  return request({
    url: '/customer/reward/getInfoVoByLogNo/' + logNo,
    method: 'get'
  })
}